

<?php 
echo "<table border=0 width=100%>";
echo "<tr><td>序号</td><td>分类名称</td><td cols=2>操作</td></tr>";
  foreach($cate as $row)
  {
  	echo "<tr><td>".$row['cid']."</td><td>".$row['name']."</td><td><a href=\"#\" onclick='ajaxEditCategory(".$row['cid'].");'>编辑</a></td><td><a href='".site_url('category/drop/id')."/".$row['cid']."'>删除</a></td></tr>";
  }
echo "</table>";
?>
<?php echo validation_errors(); ?>
<?php echo form_open('category/post');?>
<h5>分类名称</h5>
中文名:<input id="zh_name" type="text" name="name" />
 英文名:<input id="en_name" type="text" name="ename" />
<input id="action" type="button" value="保存" />
</form>

